
public class  Employee {
    private int id;
    private String name;
    private String gender;
    private int age;
    private String education;
    private double salary;
    private String address;
    private String phoneNumber;

    // 构造函数

    public Employee(int id, String name, String gender, int age, String education, double salary, String address, String phoneNumber) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.education = education;
        this.salary = salary;
        this.address = address;
        this.phoneNumber = phoneNumber;
    }

    // getter和setter方法

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    // 重写toString方法

    @Override
    public String toString() {
        return "职工编号: " + id +
                ", 姓名: " + name +
                ", 性别: " + gender +
                ", 年龄: " + age +
                ", 学历: " + education +
                ", 标准工资: " + salary +
                ", 家庭住址: " + address +
                ", 电话号码: " + phoneNumber;
    }
}